package uuid

import (
	"crypto/rand"
	uuid "github.com/satori/go.uuid"
)

func GenerateRandomString() string {
	length := 32
	const chars = "abcdefghijklmnopqrstuvwxyz0123456789"
	l := len(chars)
	result := make([]byte, length)
	rand.Read(result)

	for i := 0; i < length; i++ {
		result[i] = chars[int(result[i])%l]
	}
	return string(result)
}

func GenUUID() string {
	id := uuid.NewV4()
	return id.String()

}
